﻿using J.Status.Application.Command.BookingCommand;
using J.StatusModel;
using J.StatusModel.Dto;
using MediatR;
using StatusService;

namespace J.Status.Application.Handler.BookingHandler
{
    public class StaySelectHandler:IRequestHandler<StaySelectCommand,List<SlotDto>>
    {
        private readonly IBookingService bookingService;
        public StaySelectHandler(IBookingService bookingService)
        {
            this.bookingService = bookingService;
        }

        public async Task<List<SlotDto>> Handle(StaySelectCommand request, CancellationToken cancellationToken)
        {
            return await bookingService.StayShow();
        }
    }
}
